package xyz.heyaoshare.common.constants;

/**
 * 缓存key 常量
 * @author YueHe
 * @version 0.0.1
 * @since 2025/6/25 上午10:30
 */
public interface CacheKey {
    // 分隔符
    String SPLIT = ":";

    // 公共的
    String USER_CAPTCHA = "service:captcha:";// 用户验证码

    // 服务缓存key
    String USER_SERVICE = "service:user:";// 用户服务缓存key
    String ROLE_SERVICE = "service:role:";// 角色服务缓存key
    String MENU_SERVICE = "service:menu:";// 菜单服务缓存key
    String USER_ROLE_SERVICE = "service:user_role:";// 用户角色服务缓存key
    String ROLE_MENU_SERVICE = "service:role_menu:";// 角色菜单服务缓存key
    String DICT_TYPE_SERVICE = "service:dict_type:";// 字典类型服务缓存key
    String DICT_DATA_SERVICE = "service:dict_data:";// 字典数据服务缓存key
    String LOGS_SERVICE = "service:logs:";// 日志服务缓存key


    // 角色列表缓存key
    String SYSTEM_ROLE = "system:role";
    String SYSTEM_ROLE_LIST = SYSTEM_ROLE + ":list";
    String SYSTEM_ROLE_ONE = SYSTEM_ROLE + ":one";

}